/**
 * 👨‍💻 伟谭
 * 📅 2017/11/25
 */

#import "TWConvenienceOfServiceTypeViewController.h"

#import "TWTypeListATableView.h"
#import "TWTypeListBTableView.h"
@interface TWConvenienceOfServiceTypeViewController ()

@end

@implementation TWConvenienceOfServiceTypeViewController

#pragma mark - Class method

#pragma mark - Life cycle

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"类别选择";
    [self initializeViews];
}

#pragma mark - Override

#pragma mark - Event response

#pragma mark - Protocol

#pragma mark <<#XXXDelegate#>>

#pragma mark - Public method

#pragma mark - Private method
- (void)initializeViews {
    
    self.view.backgroundColor = [[UIColor grayColor] colorWithAlphaComponent:0.5f];
    
    UIScrollView *scrollView = [UIScrollView new];
    scrollView.showsVerticalScrollIndicator = NO;
    UIView *contentView = [UIView new];
    contentView.backgroundColor = GreyAuthentic;
    
    
    
    TWTypeListATableView *typeListATableView = [TWTypeListATableView new];
 
    [contentView addSubview:typeListATableView];
    
    TWTypeListBTableView *typeListBTableView = [TWTypeListBTableView new];
    typeListBTableView.backgroundColor = [UIColor whiteColor];
    [contentView addSubview:typeListBTableView];
    
    
    
    
    [scrollView addSubview:contentView];
    [self.view addSubview:scrollView];
    
    
    
    [scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset(0.0f);
    }];
    
    [contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.offset(0.0f);
        make.height.equalTo(scrollView).multipliedBy(0.6f);
        make.width.height.equalTo(scrollView);
    }];
    
    [typeListATableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.offset(0.0f);
        make.width.equalTo(contentView.mas_width).multipliedBy(0.266f);
    }];
    
    [typeListBTableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.offset(0.0f);
        make.left.equalTo(typeListATableView.mas_right); 
    }];
    
    
}

#pragma mark - Getter & Setter

@end
